/*************************************************************************
> File Name: circle.h
> Author: hzy
> Created Time: 2023-08-09 19:44:25
> Description:
************************************************************************/
#ifndef _CIRCLE_H_
#define _CIRCLE_H_

#include <iostream>
#include "point.h"
using namespace std;

class Circle
{
private:
    Point cp;
    int r;

public:
    void setP(int myx = 0, int myy = 0)
    {
        cp.setX(myx);
        cp.setY(myy);
    }

    void setR(int myr)
    {
        r = myr;
    }

    Point &getP()
    {
        return cp;
    }

    int getR()
    {
        return r;
    }

    void judgePointInCircle(Point &point);
};

#endif